@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index.scss';

.file-panel-normal.file-panel-src {
  overflow: hidden;
  border: 1px solid $gray-02;
  border-radius: 4px;
  .file-panel-src-header {
    font-size: 14px;
    color: $gray-08;
    font-weight: 500;
    background: $background-layout;
    border-bottom: 1px solid $gray-02;
    line-height: 20px;
    padding: 6px 16px;
    .header-file-icon {
      margin-right: 8px;
      color: $gray-06;
    }
    .file-name {
      font-weight: bold;
      word-break: break-all;
      &-filename {
        .file-icon {
          position: relative;
          top: -1px;
        }
      }
      &-path {
        font-size: 12px;
        font-weight: normal;
        color: $color-text1-2;
      }
    }
    .file-size {
      color: $color-text1-2;
      font-size: 12px;
    }
  }
  .file-panel-src-body {
    padding: 24px 40px;
    background: transparent;
    &.onlyPaddingBottom {
      padding: 0 0 20px;
    }
    &.noPadding {
      padding: 0;
    }
    img {
      max-width: 100%;
    }
    pre {
      background: transparent !important;
    }
  }
}

.file-panel-list {
  .file-panel {
    margin: 12px 0;
    &:first-child {
      margin-top: 0;
    }
    &:last-child {
      margin-bottom: 0;
    }
  }
}
